import Layout from '@/layout'

const Router = {
  path: '/members',
  component: Layout,
  redirect: '/members-list',
  name: 'members',
  
  meta: {
    title: '会员管理',
    icon: 'menbers'
  },
  children: [
    {
      path: 'members-list',
      component: () => import('@/views/members/membersList'),
      name: 'membersList',
      meta: { title: '优惠券列表', noCache: true }
    },
    {
      path: 'prepaid-details',
      component: () => import('@/views/members/prepaidDetails'),
      name: 'prepaidDetails',
      meta: { title: '预付卡详情', noCache: true }
    },
    {
      path: 'digital-details',
      component: () => import('@/views/members/digitalDetails'),
      name: 'digitalDetails',
      meta: { title: '数字权益卡详情', noCache: true }
    },
    {
      path: 'recommended-list',
      component: () => import('@/views/members/recommendedList'),
      name: 'recommendedList',
      meta: { title: '推荐用户列表', noCache: true }
    },
    {
      path: 'announcement-list',
      component: () => import('@/views/incentiveManagement/announcement/index'),
      name: 'incentiveManagementList',
      meta: { title: '神椰公告', noCache: true }
    },
    {
      path: 'announcement-detail',
      component: () => import('@/views/incentiveManagement/announcement/detail'),
      name: 'announcementDetail',
      meta: { title: '新增公告', noCache: true }
    },
    {
      path: 'sms-list',
      component: () => import('@/views/incentiveManagement/smsList/index'),
      name: 'smsList',
      meta: { title: '短信通知', noCache: true }
    },
    {
      path: 'smsConfiguration',
      component: () => import('@/views/incentiveManagement/smsConfiguration/index'),
      name: 'smsConfiguration',
      meta: { title: '新增公告', noCache: true }
    },
    {
      path: 'adConfig-list',
      component: () => import('@/views/incentiveManagement/adConfig/index'),
      name: 'adConfig',
      meta: { title: '神椰广告配置', noCache: true }
    },
    {
      path: 'medalConfig-list',
      component: () => import('@/views/equityManager/medalConfig/index'),
      name: 'medalConfig',
      meta: { title: '神椰勋章配置', noCache: true }
    },
  ]
}

export default Router